SimplePay\Core\Utils\Rate_Limiting S

Total Complexity 36
Dependencies 1
Dependents 2
Total lines 406
Lines of code 144
Logical lines of code 85
Comment lines 190
Methods 17
Properties 4

Methods 17

Method Rating Maintainability Complexity Lines of code
has_hit_limit()
S
56 5 17
cleanup_log()
S
60 5 13
get_file()
S
61 3 13
write_to_log()
S
65 3 9
increment_rate_limit_count()
S
63 2 11
get_rate_limiting_entry()
S
67 2 8
get_rate_count()
S
65 2 9
setup_log_file()
S
66 2 8
update_rate_limiting_count()
S
63 2 10
get_decoded_file()
S
69 2 7
schedule_cleanup()
S
67 2 9
remove_log_entry()
S
73 1 5
rate_limiting_enabled()
S
73 1 5
get_rate_limit_id()
S
73 1 5
get_file_contents()
S
81 1 3
has_file()
S
80 1 3
init()
S
65 1 9